import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text("你好flutter"),
        ),
        body: const MyApp(),
      ),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return Align(
      alignment: Alignment.center,
      child: Column(
        children: [
          SizedBox(
            width: 300,
            height: 60,
            child: ElevatedButton.icon(
              onPressed: () {},
              icon: const Icon(
                Icons.send,
                color: Colors.white,
              ),
              label: const Text('发送'),
            ),
          ),
          SizedBox(
            width: 300,
            height: 60,
            child: TextButton.icon(
              onPressed: () {},
              icon: const Icon(Icons.delete, color: Colors.red),
              label: const Text("删除"),
            ),
          ),
          SizedBox(
            width: 300,
            height: 60,
            child: OutlinedButton.icon(
              onPressed: () {},
              icon: const Icon(Icons.cancel, color: Colors.green),
              label: const Text("取消"),
            ),
          )
        ],
      ),
    );
  }
}
